<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" %>
<html>
<head>
	<title>Home</title>
	<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body>
<h1>
	Seznam dokumentu
</h1>
<a href="/abc/dokumenty/list/newDocument.html">Novy dokument</a>
<br />
<a href="/abc/dokumenty/list/insertDocument.html">Vlozit dokument</a>
<p class="message"> ${message} </p>

<ul>
	<c:forEach var="item" items="${listDokumentu}">
		<li>
		${item.getDate()}
		<br />
		<a href="/abc/dokumenty/list/showDoc.html?docname=${item.name}">${item.name}</a>
		<a href="/abc/dokumenty/list/editDocument.html?docname=${item.name}">Editovat</a>
		</li> 
	</c:forEach>
</ul> 
</body>
</html>
